package co.yixiang.yshop.module.product.controller.admin.producttag.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 商品标签 respvo
 *
 * @author moxiangrong
 */

@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProductTagViewRespVO {
    @Schema(description = "id", example = "1")
    private Long id;
    @Schema(description = "tag名", example = "1")
    private String tagName;
    @Schema(description = "组id", example = "1")
    private Long groupId;
    @Schema(description = "样式：1：自定义，2：图片", example = "1")
    private Integer styleType;
    @Schema(description = "字体颜色", example = "1")
    private String  fontColor;
    @Schema(description = "背景颜色", example = "1")
    private String  bgColor;
    @Schema(description = "边框颜色", example = "1")
    private String  borderColor;
    @Schema(description = "图地址", example = "1")
    private String imageUrl;
    @Schema(description = "排序", example = "1")
    private Integer sort;
    @Schema(description = "创建时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
